﻿@using Microsoft.AspNetCore.Identity
 

@inject SignInManager<IdentityUser> SignInManager
@inject UserManager<IdentityUser> UserManager
 

@if (SignInManager.IsSignedIn(User))
{
    IdentityUser appUser = await UserManager.GetUserAsync(User);
 

    <li class="dropdown user user-menu">
        <form asp-area="" asp-controller="Account" asp-action="Logout" method="post" id="logoutForm">

            <div class="pull-right">
                <button type="submit" style="background-color: #3c8dbc;margin-top:10px;margin-right:20px;color:#fff" class="btn btn-default btn-flat">退出</button>
            </div>
         
        </form>

    </li>


}

